﻿CREATE TABLE [dbo].[UserBuyProductConfig] (
    [ProductID]      BIGINT   NOT NULL,
    [UserID]         BIGINT   NOT NULL,
    [Price]          MONEY    NOT NULL,
    [UpdateTime]     DATETIME NOT NULL,
    [UpdateManageID] INT      NOT NULL,
    [IsDelete]       BIT      NOT NULL,
    [BuyLeast]       INT      NULL,
    [BuyCardinality] INT      NULL,
    CONSTRAINT [PK_USERBUYPRODUCTCONFIG] PRIMARY KEY CLUSTERED ([ProductID] ASC, [UserID] ASC)
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'购买基数', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBuyProductConfig', @level2type = N'COLUMN', @level2name = N'BuyCardinality';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'最小购买数量', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBuyProductConfig', @level2type = N'COLUMN', @level2name = N'BuyLeast';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'已删除', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBuyProductConfig', @level2type = N'COLUMN', @level2name = N'IsDelete';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'操作管理员标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBuyProductConfig', @level2type = N'COLUMN', @level2name = N'UpdateManageID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'操作时间', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBuyProductConfig', @level2type = N'COLUMN', @level2name = N'UpdateTime';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'商品单价', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBuyProductConfig', @level2type = N'COLUMN', @level2name = N'Price';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBuyProductConfig', @level2type = N'COLUMN', @level2name = N'UserID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'商品标识', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBuyProductConfig', @level2type = N'COLUMN', @level2name = N'ProductID';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'用户商品购买配置', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'UserBuyProductConfig';

